<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <%@include file="/res/include/base-head.jsp"%>
	<%@include file="/res/include/jquery-easyui.jsp"%>
	<script type="text/javascript" src="${pageContext.request.contextPath}/res/js/community/communityYellow.js"></script>
  </head>
  <body>
<form id="data-form">
	<div class="form_item">
	<input  type="hidden" name="id" value="${communityYellowVo.id}"/>
	<dl>
		<dt>选择社区名称：</dt>
		<dd>
			<select name="communityId" id="communityId">
				<option value="">请选择</option>
				<c:forEach var="item" items="${communityList}">
					<option  <c:if test="${item.id == communityYellowVo.communityId}">selected="selected"</c:if> value="${item.id}">${item.name}</option>
				</c:forEach>
			</select>
		</dd>
	</dl>
	<dl>
        <dt>名称：</dt>
        <dd><input type="text" name="name" value="${communityYellowVo.name }" class="txt grid-25" maxlength="32"/></dd>
    </dl>
    <dl>
        <dt>地址：</dt>
        <dd><input type="text" name="address" value="${communityYellowVo.address }" class="txt grid-25" maxlength="32"/></dd>
    </dl>
    <dl>
        <dt>电话：</dt>
        <dd><input type="text" name="phone" value="${communityYellowVo.phone }" class="txt grid-25" maxlength="32"/></dd>
    </dl>
    <dl>
        <dt>类型：</dt>
        <dd>
        	<select name="type">
				<option value="1"
					<c:if test="${communityYellowVo != null && communityYellowVo.type==1}"> selected="selected"</c:if>
				>便民</option>
				<option value="2"
					<c:if test="${communityYellowVo != null && communityYellowVo.type==2}"> selected="selected"</c:if>
				>家政</option>
				<option value="3"
					<c:if test="${communityYellowVo != null && communityYellowVo.type==3}"> selected="selected"</c:if>
				>购物</option>
				<option value="4"
					<c:if test="${communityYellowVo != null && communityYellowVo.type==4}"> selected="selected"</c:if>
				>维修</option>
			</select>
        </dd>
    </dl>
		<p class="page_btn"><input type="button" id="saveBtn" value="保存" class="btn_blue" onclick="admin.communityYellow.update();"/></p>
	</div>
</form>
</body>
</html>
